package com.yf.feginApi;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author Yang_Vincent
 * @Date 2020/7/23 14:49
 */
@FeignClient("consul-provider")
public interface Api {
    /**
     *
     * @param name
     * @return
     */
    @GetMapping("/hi/{name}")
    public String getInfo(@PathVariable("name") String name);
}
